package behavior.template_method;

public class HummerH2Model extends HummerModel{

    @Override
    protected void start() {
        System.out.println("H2发动");
    }

    @Override
    protected void alarm() {
        System.out.println("H2按喇叭，嘟嘟嘟");
    }

    @Override
    protected void engineBoom() {
        System.out.println("H2发动机基本没有声音");
    }

    @Override
    protected void stop() {
        System.out.println("H2开到田里去了，被迫停车");
    }
}
